<!DOCTYPE html>
<html lang="zh_CN">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>砭石</title>
    <link rel="stylesheet" href="../css/reset.css">
    <link rel="stylesheet" href="../css/common.css">
    <link rel="stylesheet" href="../css/vipGrade.css">
    <link rel="stylesheet" href="https://at.alicdn.com/t/font_842683_mrv087fj6um.css">
</head>

<body>
    <header>
        <div class="top">
            <div class="title">
                <div class="logo"><img src="../images/logoWhite.png" alt=""></div>
                <p>后台管理系统</p>
            </div>
            <div class="login">
                <div class="userName">
                    <i class="icon iconfont icon-iconfontzhizuobiaozhun023104"></i>
                    <span>SZZ</span>
                </div>
                <div class="btn">安全退出</div>
            </div>
        </div>
    </header>
    <main>
        <nav class="leftNav">
            <ul>
                <li>
                    <a href="./home.html">
                        <i class="iconfont icon-shouye2"></i>
                        <span>首页&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
                    </a>
                </li>
                <li>
                    <a href="./vip.html">
                        <i class="iconfont icon-iconfontzhizuobiaozhun023104"></i>
                        <span>会员管理</span>
                    </a>
                </li>
                <li>
                    <a href="./appoint.html">
                        <i class="icon-yuyue1 iconfont"></i>
                        <span>预约管理</span>
                    </a>
                </li>
                <li>
                    <a href="./serve.html">
                        <i class="icon-fuwuchuangb iconfont"></i>
                        <span>服务管理</span>
                    </a>
                </li>
                <li>
                    <a href="./news.html">
                        <i class="icon-xinwen iconfont"></i>
                        <span>新闻管理</span>
                    </a>
                </li>
                <li>
                    <a href="./store.html">
                        <i class="icon-dianpufill iconfont"></i>
                        <span>店铺管理</span>
                    </a>
                </li>
                <li>
                    <a href="./area.html">
                        <i class="icon-quyuditu iconfont"></i>
                        <span>区域设定</span>
                    </a>
                </li>
                <li class="active">
                    <a href="#">
                        <i class="icon-vip iconfont"></i>
                        <span>会员等级</span>
                    </a>
                </li>
                <li>
                    <a href="./order.html">
                        <i class="icon-dingdan iconfont"></i>
                        <span>订单管理</span>
                    </a>
                </li>
                <li>
                    <a href="./operatingCenter.html">
                        <i class="icon-shezhi iconfont"></i>
                        <span>运营中心</span>
                    </a>
                </li>
                <li>
                    <a href="./record.html">
                        <i class="icon-jiankang iconfont"></i>
                        <span>健康档案</span>
                    </a>
                </li>
            </ul>
        </nav>
        <div class="rightContent">
            <div class="content">
                <div class="vip backWit">
                    <p><img src="../images/vipOne.png" alt=""></p>
                    <h2><span>VIP1</span></h2>
                    <b>累计消费500元</b>
                </div>
                <div class="vip backWit">
                    <p><img src="../images/vipOne.png" alt=""></p>
                    <h2><span>VIP1</span></h2>
                    <b>累计消费500元</b>
                </div>
                <div class="vip backWit">
                    <p><img src="../images/vipOne.png" alt=""></p>
                    <h2><span>VIP1</span></h2>
                    <b>累计消费500元</b>
                </div>
                <div class="vip backWit addVipGrade">
                    <p><img src="../images/add.png" alt=""></p>
                    <h2><span>N<b>E</b>W</span></h2>
                    <b>创建新的会员等级</b>
                </div>
                <div class="vip backWit addVipGradeBtn">
                    <p>
                        <img src="../images/add.png" alt="">
                        <input type="file" name="" id="iptFile">
                    </p>
                    <h2>上传会员图标</h2>
                    <b>50*50px</b>
                    <div class="ipt">
                        <label for="vipName">等级名称</label>
                        <input type="text" id="vipName">
                    </div>
                    <div class="ipt">
                            <label for="vipConsumption">累计消费</label>
                            <input type="text" id="vipConsumption">
                        </div>
                        <div class="btn">保存</div>
                </div>
            </div>
        </div>

    </main>
    <script src="../js/jquery-3.3.1.js"></script>
    <script src="../js/echarts.min.js"></script>
    <script>
        $(function () {
            $("#iptFile").change(function () {
                // console.log(URL.createObjectURL($(this)[0].files[0]))
                // $(".add img").attr("src", URL.createObjectURL($(this)[0].files[0]));
                var file = $("#iptFile").get(0).files[0];
                var reader = new FileReader();
                reader.readAsDataURL(file);
                reader.onloadend = function () {
                    $(".addVipGradeBtn>p>img").attr("src", reader.result);
                }
            });
        })
    </script>
</body>

</html>